package com.example.demo.service.Impl;

import com.example.demo.dao.IEmpDao;
import com.example.demo.enity.Emp;
import com.example.demo.service.IEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@SuppressWarnings({"all"})
@Service
public class EmpServiceImpl implements IEmpService {

    @Autowired
    private IEmpDao empDao;

    @Override
    public List<Emp> findByEmpno(Integer empno) {
        return empDao.findByEmpno(empno);
    }

    @Override
    public List<Emp> findByDeptno(Integer deptno) {
        return empDao.findByDeptno(deptno);
    }
}
